package com.jung.net

/**
 * @author chenshiyang
 * @time 2022/6/24 14:58
 * @name kotlinDemo
 * @class describe
 */
object ApiResult {
    @Throws(Exception::class)
    inline fun <T> create(request: () -> BaseResponse<T>): T? {
        val response = request.invoke()
        return response.data
    }
}